package com.qing.servicebase.utils;

import lombok.Getter;

/**
 * @Author rokies
 * @DATE 2022/6/25 22:06
 * @Version 1.0
 */
@Getter
public enum ResponseState {

    //操作成功
    OK(200,"操作成功"),
    //未知异常
    UNKNOWN_ERROR(500,"服务器异常"),
    FILE_FAUIL(501,"文件上传失败")
    ;

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 内容
     */
    private String message;

    ResponseState(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
